package com.example.emos.api.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

@Schema(description = "更新部门表单")
@Data
public class UpdateDeptForm {

    @NotNull(message = "id不能为空")
    @Schema(description = "部门ID")
    private Integer id;

    @NotBlank(message = "deptName不能为空")
    @Schema(description = "部门名称")
    private String deptName;


    @Schema(description = "组织类型，1、组织 2、部门")
    private int deptType;


    @Schema(description = "组织编码")


    private String deptCode;

    @Schema(description = "部门上级组织ID")
    private int deptSuper;

}
